<?php include_stylesheets_for_form($form) ?>
<?php include_javascripts_for_form($form) ?>
<?php use_javascript('jquery-1.3.2.min.js') ?> 
<?php use_javascript('valida.form.js') ?> 

<form action="<?php echo url_for('cidade/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?cd_cidade='.$form->getObject()->getCdCidade() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
	<?php echo $form ?>
    <input type="button" value="Salvar" class="btn" id="btn_salvar" />
	<?php if (!$form->getObject()->isNew()): ?>
	&nbsp;<?php echo link_to('Excluir', 'cidade/delete?cd_cidade='.$form->getObject()->getCdCidade(), array('method' => 'delete', 'confirm' => 'Confirma exclusão?', 'class' => 'link_btn')) ?>
	<?php endif; ?>
</form>